﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ZDSoft.QLMS.Entity.QuestionLibrary
{
    [ActiveRecord]
    public class TestPaperPart : EntityBase<Answer>
    {
        [BelongsTo("TypeID")]
        public Type Type { get; set; }

        [Property]
        public double score { get; set; }

        [HasMany(typeof(TestPaperMinPart), ColumnKey = "TestPaperPartID", Inverse = true)]
        public IList<TestPaperMinPart> TestPaperMinParts { get; set; }

        [BelongsTo("TestPaperID")]
        public TestPaper TestPaper { get; set; }
    }
}
